home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / DefineSprite_258 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-01-08  |  8.0 KB  |  265 lines

  1. var ┬º\x01┬º = 953;
  2. loop0:
  3. while(true)
  4. {
  5.    if(eval("\x01") == 953)
  6.    {
  7.       set("\x01",eval("\x01") - 841);
  8.       ┬º┬ºpush(true);
  9.    }
  10.    else if(eval("\x01") == 38)
  11.    {
  12.       set("\x01",eval("\x01") + 129);
  13.       if(┬º┬ºpop())
  14.       {
  15.          set("\x01",eval("\x01") - 132);
  16.       }
  17.    }
  18.    else
  19.    {
  20.       if(eval("\x01") == 167)
  21.       {
  22.          set("\x01",eval("\x01") - 132);
  23.          break;
  24.       }
  25.       if(eval("\x01") != 112)
  26.       {
  27.          if(eval("\x01") == 685)
  28.          {
  29.             set("\x01",eval("\x01") + 10);
  30.             loop1:
  31.             while(true)
  32.             {
  33.                if(┬º┬ºpop())
  34.                {
  35.                   set("\x01",eval("\x01") - 262);
  36.                }
  37.                while(true)
  38.                {
  39.                   if(eval("\x01") == 506)
  40.                   {
  41.                      set("\x01",eval("\x01") - 138);
  42.                      ┬º┬ºpush(true);
  43.                      continue;
  44.                   }
  45.                   if(eval("\x01") == 368)
  46.                   {
  47.                      set("\x01",eval("\x01") + 614);
  48.                      if(┬º┬ºpop())
  49.                      {
  50.                         set("\x01",eval("\x01") - 888);
  51.                      }
  52.                      continue;
  53.                   }
  54.                   if(eval("\x01") == 365)
  55.                   {
  56.                      set("\x01",eval("\x01") - 262);
  57.                      nextFrame();
  58.                      nextFrame();
  59.                      stop();
  60.                      prevFrame();
  61.                      nextFrame();
  62.                      nextFrame();
  63.                      break loop0;
  64.                   }
  65.                   if(eval("\x01") == 985)
  66.                   {
  67.                      set("\x01",eval("\x01") - 253);
  68.                      if(┬º┬ºpop())
  69.                      {
  70.                         set("\x01",eval("\x01") - 315);
  71.                      }
  72.                      continue;
  73.                   }
  74.                   if(eval("\x01") == 745)
  75.                   {
  76.                      set("\x01",eval("\x01") + 240);
  77.                      ┬º┬ºpush(true);
  78.                      continue;
  79.                   }
  80.                   if(eval("\x01") == 732)
  81.                   {
  82.                      break loop1;
  83.                   }
  84.                   if(eval("\x01") == 901)
  85.                   {
  86.                      set("\x01",eval("\x01") - 414);
  87.                      if(┬º┬ºpop())
  88.                      {
  89.                         set("\x01",eval("\x01") + 275);
  90.                      }
  91.                      continue;
  92.                   }
  93.                   if(eval("\x01") == 685)
  94.                   {
  95.                      break;
  96.                   }
  97.                   if(eval("\x01") == 417)
  98.                   {
  99.                      set("\x01",eval("\x01") + 484);
  100.                      ┬º┬ºpush(true);
  101.                      continue;
  102.                   }
  103.                   if(eval("\x01") != 423)
  104.                   {
  105.                      if(eval("\x01") == 703)
  106.                      {
  107.                         set("\x01",eval("\x01") - 280);
  108.                         if(┬º┬ºpop())
  109.                         {
  110.                            set("\x01",eval("\x01") + 322);
  111.                         }
  112.                      }
  113.                      else if(eval("\x01") == 762)
  114.                      {
  115.                         set("\x01",eval("\x01") - 77);
  116.                         ┬º┬ºpush(true);
  117.                      }
  118.                      else
  119.                      {
  120.                         if(eval("\x01") == 487)
  121.                         {
  122.                            set("\x01",eval("\x01") + 275);
  123.                            break loop0;
  124.                         }
  125.                         if(eval("\x01") == 103)
  126.                         {
  127.                            set("\x01",eval("\x01") + 567);
  128.                            stop();
  129.                            break loop0;
  130.                         }
  131.                         if(eval("\x01") != 94)
  132.                         {
  133.                            if(eval("\x01") == 982)
  134.                            {
  135.                               set("\x01",eval("\x01") - 888);
  136.                            }
  137.                            break loop0;
  138.                         }
  139.                         set("\x01",eval("\x01") + 609);
  140.                         ┬º┬ºpush(true);
  141.                      }
  142.                      continue;
  143.                   }
  144.                   set("\x01",eval("\x01") + 322);
  145.                   toggleHighQuality();
  146.                   ┬º┬ºpop()[┬º┬ºpop()[┬º┬ºpop()] - 1] = _loc2_;
  147.                   _level0.localTopScore.data.keys[keyIndex][goal.index - 1] = _root.gameInfo.keys[keyIndex][goal.index - 1];
  148.                }
  149.                set("\x01",eval("\x01") - 320);
  150.             }
  151.             set("\x01",eval("\x01") - 315);
  152.             ┬º┬ºpush(┬º┬ºpop() | ┬º┬ºpop());
  153.             break;
  154.          }
  155.          if(eval("\x01") != 695)
  156.          {
  157.             if(eval("\x01") != 35)
  158.             {
  159.                break;
  160.             }
  161.             set("\x01",eval("\x01") + 330);
  162.             goal;
  163.             onFocus = function()
  164.             {
  165.                var _loc2_ = this.index;
  166.                this = this._parent;
  167.                this["k" + _loc2_].text = "";
  168.                goal = this["k" + _loc2_];
  169.                this["bg" + _loc2_].gotoAndStop(2);
  170.             };
  171.             onKill = function()
  172.             {
  173.                var _loc3_ = this.index;
  174.                this = this._parent;
  175.                this["bg" + _loc3_].gotoAndStop(1);
  176.                this["k" + _loc3_].text = getKey(_root.gameInfo.keys[keyIndex][_loc3_ - 1]);
  177.             };
  178.             k1.index = 1;
  179.             k1.onSetFocus = onFocus;
  180.             k1.onKillFocus = onKill;
  181.             k2.index = 2;
  182.             k2.onSetFocus = onFocus;
  183.             k2.onKillFocus = onKill;
  184.             k3.index = 3;
  185.             k3.onSetFocus = onFocus;
  186.             k3.onKillFocus = onKill;
  187.             k4.index = 4;
  188.          }
  189.          set("\x01",eval("\x01") - 657);
  190.          ┬º┬ºpush(true);
  191.          continue;
  192.          k4.onSetFocus = onFocus;
  193.          k4.onKillFocus = onKill;
  194.          k5.index = 5;
  195.          k5.onSetFocus = onFocus;
  196.          k5.onKillFocus = onKill;
  197.          getKey = function(code)
  198.          {
  199.             switch(code)
  200.             {
  201.                case 38:
  202.                   txt = "Γåæ";
  203.                   break;
  204.                case 37:
  205.                   txt = "ΓåÉ";
  206.                   break;
  207.                case 39:
  208.                   txt = "ΓåÆ";
  209.                   break;
  210.                case 40:
  211.                   txt = "Γåô";
  212.                   break;
  213.                case 32:
  214.                   txt = "SP";
  215.                   break;
  216.                case 17:
  217.                   txt = "Ctr";
  218.                   break;
  219.                case 16:
  220.                   txt = "Sh";
  221.                   break;
  222.                case 20:
  223.                   txt = "CL";
  224.                   break;
  225.                case 46:
  226.                   txt = "Del";
  227.                   break;
  228.                case 45:
  229.                   txt = "In";
  230.                   break;
  231.                case 13:
  232.                   txt = "E";
  233.                   break;
  234.                default:
  235.                   txt = String.fromCharCode(code);
  236.             }
  237.             return txt;
  238.          };
  239.          var obj = new Object();
  240.          ┬º┬ºpush(obj);
  241.          ┬º┬ºpush("onKeyDown");
  242.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  243.          Key.addListener(obj);
  244.          iniKeys = function(ki)
  245.          {
  246.             keyIndex = ki;
  247.             keyIndex = keyIndex != undefined ? keyIndex : 0;
  248.             var _loc3_ = 1;
  249.             while(_loc3_ <= 5)
  250.             {
  251.                this["k" + _loc3_].text = getKey(_root.gameInfo.keys[keyIndex][_loc3_ - 1]);
  252.                _loc3_ = _loc3_ + 1;
  253.             }
  254.          };
  255.          iniKeys();
  256.          break;
  257.       }
  258.       set("\x01",eval("\x01") + 573);
  259.       if(┬º┬ºpop())
  260.       {
  261.          set("\x01",eval("\x01") + 10);
  262.       }
  263.    }
  264. }
  265.